﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
   <title>商品分类信息</title>
   {HL.Config.BasicCss}
   <link type="text/css" href="{HL.Config.InstallDir}Skin/Default/Custom/ShopCategory.css?version=20071126" rel="stylesheet" />
   <link href="/Skin/Default/Categories/CategoryList.css" rel="stylesheet"  type="text/css" />
</head>
<body>
<div id="nick">
{HL.Label ID="网站顶部标签" }
<form action="" id="aspnetForm" >


<div id="Category_Content">   
   <!--分类导航条-->
   <div id="Catergor_Navgitor">
       您当前的位置是：<a href="/">首页</a> -> <a href="ProductList.aspx">商品列表</a>{$ClassMapPath/} 
   </div>
   
   <!--子分类列表-->
   <div id="ChildClass_List">
       <div>您可以选择下面的详细分类：</div>
       {$ChildCategory/}
   </div>
   <!--主栏目-->
   <div id="Main_Frame">     
         
      <!--商品展示主栏-->
      <div id="Product_List">
          <div id="mainSarR">  
             <!--商品显示按钮栏-->
             <!----广告AD-----店铺大厅横幅广告--开始-->
<script type='text/javascript' src='/IMS_AD/200711/21114252796.js' charset='gb2312'></script>
            <!----广告AD-----店铺大厅横幅广告--结束-->

             <div id="MainMenu">
             <div class="TabMenu">
		         <!--一级导航-->				
                    <ul id="M1" >
                           <li class="active"><a id="allLink" href="ProductList.aspx">所有商品</a></li>
                           <li><a id="recommendLink" href="ProductList.aspx">橱窗推荐</a></li>
                           <li><a id="commondLink" href="ProductList.aspx">集市商品</a></li>
                           <li><a id="bandShopLink" href="ProductList.aspx">品牌商城</a></li>
                           <li><a id="secondhandLink" href="ProductList.aspx">二手/闲置</a></li>
                    </ul>
                 </div>
                 <script type="text/javascript">
                    function setButtonActive(flags)
                    {
                       var _flag=parseInt(flags);
                       var ulObj=document.getElementById("M1");  
                       for(var i=0;i<ulObj.childNodes.length;i++)
                         ulObj.childNodes[i].className="";
                         //alert(ulObj.childNodes.length);
                         _flag=_flag+ulObj.childNodes.length-5;
                         ulObj.childNodes[_flag].className="active";  

                    }
                    setButtonActive({$ButtonIndex/});
                </script>
                 <!--商品显示方式选择栏-->
                 <div id="Prodcut_Show_Type">
                    <div class="show_num">显示方式：</div>
                    <div class="show_page">
                       <img src="Images/display_grid_list_act.gif" border="0"/>
                       <img src="Images/display_pic_list.gif" border="0"/>
                       <img src="Images/display_text_list.gif" border="0"/>
                    </div>
                    <div class="show_num">每页显示数量：</div>
                    <div class="show_page">
                       <img src="Images/page_20.gif" border="0" />
                       <img src="Images/page_40.gif" border="0"/>
                       <img src="Images/page_80.gif" border="0"/>
                    </div>
                    <div class="show_place">                       
                           
                            
                    </div>
                 </div>
                 
                 <div style="clear:both"></div>
                 <div id="PreviewBox" onmouseout="hidePreview(event);">
	                <div class="Picture" onmouseout="hidePreview(event);">
		                <span></span>
		                <div>
			                <a id="previewUrl" href="javascript:void(0)" target="_blank"><img oncontextmenu="return(false)" id="PreviewImage" src="about:blank" border="0" onmouseout="hidePreview(event);" /></a>
		                </div>
	                </div>
                </div>
                <script type="text/javascript" src="/Shop/Js/picPreview.js"></script>
                  
                <div id="Porduct_List_Main">
                   {$ProductList/}
                   <div class="productPageStyle" >
                        {$PagePanel/}
                   </div>
                   
                </div>
              
             </div>
          </div>      
      </div>
      <!--侧栏-->
      <div id="Side_Bar">
            <!--筛选-->
            <div class="SideBox">
                <div class="title"><b>商品筛选</b></div>
                
            </div>
            <!--搜索-->
           
            
            <div class="SideBox">
                <div class="title"><b>商城推荐</b></div>
                
            </div>
            <!----广告AD-----威购首页右栏广告--开始-->
                  <script type='text/javascript' src='/IMS_AD/200711/13115735343.js' charset='gb2312'></script>
            <!----广告AD-----威购首页右栏广告--结束-->
            <div class="SideBox">
                 <div class="title"><b>热销商品</b></div>
                 <div class="ListShop_E">           
                   


                 </div>
           </div>
            
            
	  </div> 
   </div>
   
 </div>   
 <div style="clear:both"></div> 
 <script type="text/javascript">

     
function GoPage()
{
   var _Gopage=document.getElementById("Page").value;
   if(_Gopage!="")
   {
      if(isNaN(_Gopage))
      {
           alert("你输入的页码包含其它字符，请重新输入！");
      }
      else if(parseInt(_Gopage)<1)
      {
         alert("输入页码过小，请输入正确页面！");
      }
      else
      {
        location.href="ShopCategory.aspx?"+BindSearchParam("page",_Gopage,false);
      }      
      
   }
   else
   {
      alert("输入页码过小，请输入正确页面！");
   }
}
function BindSearchParam(RequestName,sValue,PageFirst)
{
   

   var j_pageIndex=document.getElementById("H_Page").value;

   var j_othertype=document.getElementById("H_OtherType").value; 

   var j_sorttype=document.getElementById("H_sortType").value; 

   var j_classid=document.getElementById("H_parentid").value;

   var j_pageSize=document.getElementById("H_PageSize").value;   
 
   var j_place=document.getElementById("F_ProductPlace").value;
   
   var j_listmode=document.getElementById("H_listmode").value;
   switch(RequestName)
   {
       
        case "page":
            j_pageIndex = sValue;
            break;
        case "pagesize":
            j_pageSize = sValue;
            break;
        case "sorttype":
            j_sorttype=sValue;
            break;
        case "othertype":
            j_othertype = sValue;
            break;
        case "Parentid":
            j_classid=sValue;
            break;
        case "place":
            j_place=sValue;
            break;       
        

    }
   
    if (PageFirst==true)
        j_pageIndex = "1";
    var QuerryString = "page=" + j_pageIndex + "&pagesize=" + j_pageSize + "&sorttype=" + j_sorttype + "&othertype=" + j_othertype + "&place=" + escape(j_place)+"&listmode="+j_listmode +"&Parentid=" + j_classid ;
    return QuerryString;
  
   
}
function ChangeSelect(RequesetName,sValue)
{ 
   location.href="ShopCategory.aspx?"+BindSearchParam(RequesetName,sValue,true);
}

function DetailSearchBtnClick()
{
   location.href="ShopCategory.aspx?"+BindSearchParam("","",true);


}

 
 
 

</script>

</form>
{HL.Label ID="网站底部标签" }
</div>
<script>
var str=document.documentElement.innerHTML;//这里是整个页面代码 ,也可以指定id

str = str.replace("</span><br /><span>", "</span><span> ");

document.write(str);
</script>
</body>
</html>
